package com.film.domain;

import java.io.Serializable;
/**
 * 该类试订单类
 * */
public class FilmOrder implements Serializable {

    private Integer orderId;//id

    private String orderNum;//订单编号

    private FilmShowings filmShowings;//电影场次

    private User user;//用户

    private FilmSeat filmSeat;//座位

    private String createTime;//时间

    private Integer orderFlag;//是否已付款

    public FilmOrder() {
    }

    @Override
    public String toString() {
        return "FilmOrder{" +
                "orderId=" + orderId +
                ", orderNum='" + orderNum + '\'' +
                ", filmShowings=" + filmShowings +
                ", user=" + user +
                ", filmSeat=" + filmSeat +
                ", createTime='" + createTime + '\'' +
                ", orderFlag=" + orderFlag +
                '}';
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public FilmShowings getFilmShowings() {
        return filmShowings;
    }

    public void setFilmShowings(FilmShowings filmShowings) {
        this.filmShowings = filmShowings;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public FilmSeat getFilmSeat() {
        return filmSeat;
    }

    public void setFilmSeat(FilmSeat filmSeat) {
        this.filmSeat = filmSeat;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getOrderFlag() {
        return orderFlag;
    }

    public void setOrderFlag(Integer orderFlag) {
        this.orderFlag = orderFlag;
    }

    public FilmOrder(String orderNum, FilmShowings filmShowings, User user, FilmSeat filmSeat, String createTime, Integer orderFlag) {
        this.orderNum = orderNum;
        this.filmShowings = filmShowings;
        this.user = user;
        this.filmSeat = filmSeat;
        this.createTime = createTime;
        this.orderFlag = orderFlag;
    }

    public FilmOrder(Integer orderId, String orderNum, FilmShowings filmShowings, User user, FilmSeat filmSeat, String createTime, Integer orderFlag) {
        this.orderId = orderId;
        this.orderNum = orderNum;
        this.filmShowings = filmShowings;
        this.user = user;
        this.filmSeat = filmSeat;
        this.createTime = createTime;
        this.orderFlag = orderFlag;
    }
}
